package com.example.supplychainbackend.dao.quality;

import com.example.supplychainbackend.entity.quality.InspectionRequestEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface InspectionRequestDao extends JpaRepository<InspectionRequestEntity,String> {
    InspectionRequestEntity findByBatchNumber(String batchNumber);
    Optional<InspectionRequestEntity> findByReferenceDocumentNumber(String referenceDocumentNumber);
}
